﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="tin-dang-edit.ascx.cs" Inherits="Admin_UserControl_tin_dang_edit" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<script src="/ckeditor/ckeditor.js"></script>
<script src="/ckeditor/adapters/jquery.js"></script>
<script src="/Scripts/JCommonForm.js"></script>
<script src="/Scripts/tin-dang-edit.js"></script>
<h1 class="titlePage"><span style="padding: 5px 5px 5px 35px; display: inline-block;">Edit tin đăng
</span></h1>
<div class="form" style="padding: 10px; width: 98%;">
    <div class="left" style="width: 225px; margin-right: 10px;">
        <div class="form-row">
            <b>Chuyên Mục chính:</b> * (Lựa chọn)
        </div>
        <div class="form-row">
            <asp:DropDownList ID="ddlChuyenMuc" Width="206px" runat="server" AppendDataBoundItems="true" CssClass="ddlChuyenMuc">
                <asp:ListItem Value="0">==Chuyên Mục Chính==</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="left" style="width: 225px;">
        <div class="form-row">
            <b>Chọn Chuyên Mục Liên Quan:</b> *
        </div>
        <div class="form-row">
            <asp:DropDownList ID="ddlChuyenMucLienQuan" Width="206px" runat="server" AppendDataBoundItems="true" CssClass="ddlChuyenMucLienQuan">
                <asp:ListItem Value="0">==Chuyên Mục Liên Quan==</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="left" style="width: 239px;">
        <div class="form-row">
            <b>Diễn Giả:</b> *
        </div>
        <div class="form-row">
            <asp:DropDownList ID="ddlAuthor" Width="206px" runat="server" AppendDataBoundItems="true" CssClass="ddlAuthor">
                <asp:ListItem Value="0">==Chọn diễn giả==</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="left" style="width: 560px; margin-right: 10px;">
        <div class="form-row">
            <b>Tiêu đề:</b> * (Nhập tiêu đề tin)
        </div>
        <div class="form-row">
            <asp:TextBox ID="txtTieuDe" runat="server" Width="520px" MaxLength="100" CssClass="txtTieuDe"></asp:TextBox>
        </div>
    </div>
    <div class="left" style="width: 275px;">
        <div class="form-row">
            <b>Ảnh Thumbnail:</b> *
        </div>
        <div class="form-row">
            <asp:FileUpload ID="fulAnh1" runat="server" />
            <input id="hdAnh1" type="hidden" runat="server" />
        </div>
    </div>
    <div class="form-row">
        <b>Mô tả:</b> * (Nhập mô tả tin)
    </div>
    <div class="form-row">
        <%--<asp:TextBox ID="txtMoTa" TextMode="MultiLine" runat="server" Width="520px" MaxLength="250" CssClass="txtMoTa" Height="82px"></asp:TextBox>--%>
        <CKEditor:CKEditorControl ID="txtMoTa" runat="server" Height="100" BasePath="~/ckeditor"></CKEditor:CKEditorControl>
    </div>
    <!-- Các chức năng cho lịch khai giảng -->
    <fieldset class="fu-lich-khai-giang">
        <legend>Cài đặt lịch khai giảng</legend>
        <div class="left" style="width: 225px; margin-right: 10px;">
            <div class="form-row">
                <b>Đầu tư:</b> *
            </div>
            <div class="form-row">
                <%--<asp:TextBox ID="txtDauTu" TextMode="MultiLine" runat="server" Width="200px" MaxLength="250" CssClass="txtDauTu" Height="50px"></asp:TextBox>--%>
                <CKEditor:CKEditorControl ID="txtDauTu" runat="server" Height="100" BasePath="~/ckeditor"></CKEditor:CKEditorControl>
            </div>
        </div>
        <div class="left" style="width: 225px;">
            <div class="form-row">
                <b>Thời gian:</b> *
            </div>
            <div class="form-row">
                <%--<asp:TextBox ID="txtThoiGian" TextMode="MultiLine" runat="server" Width="200px" MaxLength="250" CssClass="txtMoTa" Height="50px"></asp:TextBox>--%>
                <CKEditor:CKEditorControl ID="txtThoiGian" runat="server" Height="100" BasePath="~/ckeditor"></CKEditor:CKEditorControl>
            </div>
        </div>
        <div class="left" style="width: 125px; margin: 0 10px 0 10px;">
            <div class="form-row">
                <b>Ngày bắt đầu:</b> *
            </div>
            <div class="form-row">
                <asp:TextBox ID="txtNgayBatDau" runat="server" Width="120px" MaxLength="250" CssClass="txtDauTu date"></asp:TextBox>
            </div>
        </div>
        <div class="left" style="width: 125px;">
            <div class="form-row">
                <b>Ngày kết thúc:</b> *
            </div>
            <div class="form-row">
                <asp:TextBox ID="txtNgayKetThuc" runat="server" Width="120px" MaxLength="250" CssClass="txtDauTu date"></asp:TextBox>
            </div>
        </div>
    </fieldset>
    <div class="form-row">
        <b>Mô nội dung:</b> * (Nhập nội dung)
    </div>
    <div class="form-row">
        <%--<asp:TextBox ID="txtNoiDung" TextMode="MultiLine" runat="server" Width="520px" MaxLength="250" CssClass="txtNoiDung ckeditor"></asp:TextBox>--%>
        <CKEditor:CKEditorControl ID="CKEditor1" runat="server" Height="200" BasePath="~/ckeditor"></CKEditor:CKEditorControl>
    </div>
    <table>
        <tr>
            <td><b>Lựa chọn kiểu tin:</b></td>
            <td><b>Lựa chọn hiển thị:</b></td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="ddl_kieutin" runat="server">
                    <asp:ListItem Value="1">Học chính</asp:ListItem>
                    <asp:ListItem Value="2">Huấn luyện 1 kèm 1</asp:ListItem>
                    <asp:ListItem Value="3">Học thử</asp:ListItem>
                    <asp:ListItem Value="4">Quà tặng</asp:ListItem>
                    <asp:ListItem Value="5">Dịch vụ sau học</asp:ListItem>
                </asp:DropDownList></td>
            <td>
                <asp:RadioButton ID="rbtShow" runat="server" GroupName="cbDisplay" Text="Hiển thị ngay" Checked="true" />
                <asp:RadioButton ID="rbtHide" runat="server" GroupName="cbDisplay" Text="Lưu trữ" /></td>
        </tr>
    </table>
    <!-- Button -->
    <div class="form-row" style="text-align: center;">
        <asp:Button ID="btnSubmit" runat="server" CssClass="w8-button l-blue gmap" Text="Đăng tin" OnClick="btnSubmit_Click" OnClientClick="return xCheckForm()" />
    </div>
    <div class="clr"></div>
</div>
